package Emp;

abstract class Employee {
    private String name;
    private int month;//月份
    public Employee(){}
    public Employee(String name,int month){
        this.name = name;
        this.month = month;
    }
    public String getName(){
        return name;
    }
    public int getMonth(){
        return month;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setMonth(int month){
        this.month = month;
    }
    public double getSalary(int month){
        double salary = 0;
        if (month == this.month){
            salary += 100;
        }
        return salary;
    }
}
